/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service;

/**
 * <p>
 * This class is a wrapper for {@link donviLocalService}.
 * </p>
 *
 * @author    Nguyen Tuan Vinh
 * @see       donviLocalService
 * @generated
 */
public class donviLocalServiceWrapper implements donviLocalService {
	public donviLocalServiceWrapper(donviLocalService donviLocalService) {
		_donviLocalService = donviLocalService;
	}

	/**
	* Adds the donvi to the database. Also notifies the appropriate model listeners.
	*
	* @param donvi the donvi to add
	* @return the donvi that was added
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.donvi adddonvi(
		doan.quanlycanbo.portlet.model.donvi donvi)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.adddonvi(donvi);
	}

	/**
	* Creates a new donvi with the primary key. Does not add the donvi to the database.
	*
	* @param madonvi the primary key for the new donvi
	* @return the new donvi
	*/
	public doan.quanlycanbo.portlet.model.donvi createdonvi(long madonvi) {
		return _donviLocalService.createdonvi(madonvi);
	}

	/**
	* Deletes the donvi with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param madonvi the primary key of the donvi to delete
	* @throws PortalException if a donvi with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public void deletedonvi(long madonvi)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_donviLocalService.deletedonvi(madonvi);
	}

	/**
	* Deletes the donvi from the database. Also notifies the appropriate model listeners.
	*
	* @param donvi the donvi to delete
	* @throws SystemException if a system exception occurred
	*/
	public void deletedonvi(doan.quanlycanbo.portlet.model.donvi donvi)
		throws com.liferay.portal.kernel.exception.SystemException {
		_donviLocalService.deletedonvi(donvi);
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @return the range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.dynamicQuery(dynamicQuery, start, end);
	}

	/**
	* Performs a dynamic query on the database and returns an ordered range of the matching rows.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param dynamicQuery the dynamic query to search with
	* @param start the lower bound of the range of model instances to return
	* @param end the upper bound of the range of model instances to return (not inclusive)
	* @param orderByComparator the comparator to order the results by
	* @return the ordered range of matching rows
	* @throws SystemException if a system exception occurred
	*/
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.dynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	* Counts the number of rows that match the dynamic query.
	*
	* @param dynamicQuery the dynamic query to search with
	* @return the number of rows that match the dynamic query
	* @throws SystemException if a system exception occurred
	*/
	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.dynamicQueryCount(dynamicQuery);
	}

	/**
	* Gets the donvi with the primary key.
	*
	* @param madonvi the primary key of the donvi to get
	* @return the donvi
	* @throws PortalException if a donvi with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.donvi getdonvi(long madonvi)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getdonvi(madonvi);
	}

	/**
	* Gets a range of all the donvis.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of donvis to return
	* @param end the upper bound of the range of donvis to return (not inclusive)
	* @return the range of donvis
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.donvi> getdonvis(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getdonvis(start, end);
	}

	/**
	* Gets the number of donvis.
	*
	* @return the number of donvis
	* @throws SystemException if a system exception occurred
	*/
	public int getdonvisCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getdonvisCount();
	}

	/**
	* Updates the donvi in the database. Also notifies the appropriate model listeners.
	*
	* @param donvi the donvi to update
	* @return the donvi that was updated
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.donvi updatedonvi(
		doan.quanlycanbo.portlet.model.donvi donvi)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.updatedonvi(donvi);
	}

	/**
	* Updates the donvi in the database. Also notifies the appropriate model listeners.
	*
	* @param donvi the donvi to update
	* @param merge whether to merge the donvi with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	* @return the donvi that was updated
	* @throws SystemException if a system exception occurred
	*/
	public doan.quanlycanbo.portlet.model.donvi updatedonvi(
		doan.quanlycanbo.portlet.model.donvi donvi, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.updatedonvi(donvi, merge);
	}

	public doan.quanlycanbo.portlet.model.donvi geDepartmentByD_G(
		long departmentId, long groupId)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchdonviException {
		return _donviLocalService.geDepartmentByD_G(departmentId, groupId);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.donvi> getAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getAll();
	}

	public java.util.List<doan.quanlycanbo.portlet.model.donvi> getByKhoiDV(
		long khoidv) throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getByKhoiDV(khoidv);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.donvi> getByGroup(
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getByGroup(groupId);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.donvi> getByParent(
		long parentId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getByParent(parentId);
	}

	/**
	* Danh sÃƒÂ¡ch viÃ¡Â»â€¡n trÃ†Â°Ã¡Â»Å¸ng hoÃ¡ÂºÂ·c viÃ¡Â»â€¡n phÃƒÂ³ cÃ¡Â»Â§a Ã„â€˜Ã†Â¡n vÃ¡Â»â€¹
	*/
	public java.util.List<doan.quanlycanbo.portlet.model.hoso> getDsLanhDao(
		long depId, long funcId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getDsLanhDao(depId, funcId);
	}

	public int countAllEmployee(long depId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.countAllEmployee(depId);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hoso> getDsHocham(
		long depId, long mahocham)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getDsHocham(depId, mahocham);
	}

	public int countDsHocham(long depId, long mahocham)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.countDsHocham(depId, mahocham);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hoso> getDsHocvi(
		long depId, long mahocvi)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.getDsHocvi(depId, mahocvi);
	}

	public int countDsHocvi(long depId, long mahocvi)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.countDsHocvi(depId, mahocvi);
	}

	public doan.quanlycanbo.portlet.model.donvi addDonVi(
		doan.quanlycanbo.portlet.model.donvi dv1, long userId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _donviLocalService.addDonVi(dv1, userId);
	}

	public doan.quanlycanbo.portlet.model.donvi updateDonVi(long madonvi,
		long makhoi, long donvicha, java.lang.String tendonvi,
		java.lang.String diachi, java.lang.String dienthoai,
		java.lang.String fax, java.lang.String hinhanh,
		java.lang.String gioithieuchung)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchdonviException {
		return _donviLocalService.updateDonVi(madonvi, makhoi, donvicha,
			tendonvi, diachi, dienthoai, fax, hinhanh, gioithieuchung);
	}

	public void deleteDonVi(long madonvi)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchdonviException {
		_donviLocalService.deleteDonVi(madonvi);
	}

	public void deleteDonVi(doan.quanlycanbo.portlet.model.donvi dv)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		_donviLocalService.deleteDonVi(dv);
	}

	public donviLocalService getWrappeddonviLocalService() {
		return _donviLocalService;
	}

	private donviLocalService _donviLocalService;
}